package com.ws.exer4;

public class ComparableCircleTest {
    public static void main(String[] args) {

        ComparableCircle c1 = new ComparableCircle(3.6);
        ComparableCircle c2 = new ComparableCircle(3.6);

        int i = c1.compareTo(c2);
        if (i > 0)  {
            System.out.println("c1对象大");
        } else if (i < 0) {
            System.out.println("c2对象大");
        } else {
            System.out.println("一样大");
        }

        int ddd = c1.compareTo(new String("ddd"));
        System.out.println(ddd);
    }
}
